package com.yl.chainStore.mapper.warehouse;

import com.yl.chainStore.entity.warehouse.WarehouseGoodBatchCount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page
import com.yl.chainStore.pojo.vo.warehouse.GoodBatchCountSelectVo
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param

/**
 * <p>
 * 仓库物品数量明细（批次） Mapper 接口
 * </p>
 *
 * @author cxw
 * @since 2021-06-10
 */
@Mapper
interface WarehouseGoodBatchCountMapper : BaseMapper<WarehouseGoodBatchCount> {


	fun addCount(@Param("id") id: Long, @Param("count") count: Int)

	fun subCount(@Param("id") id: Long, @Param("count") count: Int)

	fun selectBatchCount(
		@Param("page") id: Page<WarehouseGoodBatchCount>,
		@Param("vo") vo: GoodBatchCountSelectVo,
		@Param("typeId")typeId:Long
	): Page<WarehouseGoodBatchCount>
}
